package com.xzzz.irda.tracker.core.adapter.feign;

import feign.RequestInterceptor;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConditionalOnClass(value = RequestInterceptor.class)
public class TrackerFeignConfiguration {

    @Bean
    public RequestInterceptor trackerFeignInterceptor () {
        return new TrackerFeignInterceptor();
    }
}
